package com.ruoyi.StarStudio.Domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResult {

    private int code;   //状态码
    private long total;  //总记录数
    private String message; //返回消息
    private List<?> rows;  //列表数据

    public PageResult(long total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageResult(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
